<?php
$usertoken = isset($_COOKIE['usertoken']);
if ($usertoken){
	// do nothing
}else{
	// redirect to login page
	echo "<script language='javascript'>";
	echo " location='/login.php';";
	echo "</script>";
}

//$mysqli = new mysqli("localhost", "root", "", "harvester");
 $mysqli = new mysqli("localhost", "ihamster", "123z123", "ihamster_harvester");
if ($mysqli->connect_errno) {
    printf("Connect failed: %s\n", $mysqli->connect_error);
    exit();
}
$mysqli->query("SET NAMES 'utf8'");
$__host = '.pphime.com:811';
// $__host = '.fuckavmm.com';
?>
